home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sunserver1.aston.ac.uk!usenet
- From: bakerpa@aston.ac.uk (PA BAKER)
- Subject: Pointers to member functions.
- X-Nntp-Posting-Host: csproject2.aston.ac.uk
- Message-ID: <DMKL69.B2F@aston.ac.uk>
- Sender: usenet@aston.ac.uk
- Reply-To: bakerpa@aston.ac.uk
- Organization: Aston University
- Date: Sat, 10 Feb 1996 17:13:20 GMT
-
- Hi there, a small problem that hopefully someone may be able to help with........
- I have a class window which inherits from all over the place etc....
- trying to get access to a member function read_data. This to enable the XView notifier to be set up
- when a file can be read from.
-
-
- class Window
- {
- .......
- .......
- .......
- Notify_value read_data(Notify_client client,register int fd);
- void initalise_pipe(void);
- ......
- .......
- .......
- }
-
-
-
- Window::read_data(notify_client client,register int fd)
- {
- ....
- ....
- ..
- }
-
-
- read_data is set up in initialise pipe by
- void
- Window::initialise_pipe()
- {
- ......
- ......
- ......
- //PMFI ptr = &NNG_Window_Group::read_data;
- notify_set_input_func(client1,(notify_value(*)(...))(this->read_data), fp);
- }
- The notify set input function needs a pointer to a function of type (notify_value*)(...) as can be seen above.
-
- I have tried a whole load of stuff to get access to the member function i.e.
- Window::read_data
- settting a pointer to the function as above.
- etc,etc.
-
- Any ideas.
-
- Yours Desperately.
-
- Paul Baker.
-
-
-
-
-